//导入
import {createSlice, configureStore} from '@reduxjs/toolkit';
//导入 slice
import countReducer from './slices/countSlice';
import zanReducer from './slices/zanSlice';
import todoReducer from './slices/todoSlice';

//配置 store 对象
let store = configureStore({
  reducer: {
    count: countReducer,
    zan: zanReducer,
    todos: todoReducer
  }   // countSlice.reducer 就是 reducer 函数
});

//暴露 store 对象
export default store;
